/*
 * @Author: 刘岩 15136056318@163.com
 * @Date: 2023-11-03 17:34:15
 * @LastEditors: LiuYan 15136056318@163.com
 * @LastEditTime: 2023-12-01 13:42:29
 * @FilePath: \react-template_pc\src\routers\index.tsx
 * @Description: 路由
 */
import type { RoutesType } from './data.d.ts'
import _404 from '@/errors/404.tsx'
import Login from '@/login/index.tsx'
import Board from '@/board/index.tsx'
import pages from './pages.tsx'
import Layout from '../layout/'
const routes: RoutesType[] = [
  {
    path: '/',
    element: <Layout></Layout>,
    children: [...pages],
  },
  {
    path: '/login',
    element: <Login></Login>,
  },
  {
    path: '/board',
    element: <Board></Board>,
    meta: {
      title: '看板',
    },
  },
  {
    path: '/*',
    element: <_404></_404>,
  },
]

export default routes
